import request from '@/utils/request.js'

export function getAllVoteList(data) {
	
	return request({
		url: '/artVote/getAllVote',
		method: 'GET',
		data: data
	})
}

//用户点击投票
export function getUserVote(data) {
	
	return request({
		url: '/artVote/userVoted',
		method: 'POST',
		data: data
	})
}

//判断用户的某一个作品投票情况(true:投过票，false：没投过)
export function getVoteJudge(data) {
	
	return request({
		url: '/artVote/judegeUserVote',
		method: 'GET',
		data: data
	})
}

export function queryCampusInfo(data) {
	
	return request({
		url: '/artVote/queryCampusInfo',
		method: 'GET',
		data: data
	})
}

export function queryCampusVoteInfo(data) {
	
	return request({
		url: '/artVote/queryCampusVoteInfo',
		method: 'GET',
		data: data
	})
}
